package tk.pak0.audiomidifier.model.audio.pitchdet;

import javax.sound.sampled.LineUnavailableException;

public abstract class A_PitchDetector {
	private int smoothFactor;
	private float sampleRate;
	
	public A_PitchDetector(float sampleRate, int smoothFactor){
		this.sampleRate = sampleRate;
		this.smoothFactor = smoothFactor;
	}
	
	public int getSmoothFactor() {
		return smoothFactor;
	}

	public void setSmoothFactor(int smoothFactor) {
		this.smoothFactor = smoothFactor;
	}

	public float getSampleRate() {
		return sampleRate;
	}

	public void setSampleRate(float sampleRate) {
		this.sampleRate = sampleRate;
	}

	public abstract double getPitch(short[] array) throws LineUnavailableException ;
}
